﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace Simple.Repository.SimpleEntitys {

	/// <summary>
	/// 照护计划模板
	/// </summary>
	[JsonObject(MemberSerialization.OptIn), Table(Name = "care_plan_template", DisableSyncStructure = true)]
	public partial class CarePlanTemplate {

		/// <summary>
		/// 照护计划模板Id
		/// </summary>
		[JsonProperty, Column(Name = "id", DbType = "bigint", IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 照护计划模板名称
		/// </summary>
		[JsonProperty, Column(Name = "name", IsNullable = false)]
		public string Name { get; set; }

		/// <summary>
		/// 个性化照护需求
		/// </summary>
		[JsonProperty, Column(Name = "personalized_care_needs", StringLength = -1)]
		public string PersonalizedCareNeeds { get; set; }

		/// <summary>
		/// 公司Id
		/// </summary>
		[JsonProperty, Column(Name = "company_id", DbType = "bigint")]
		public long CompanyId { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[JsonProperty, Column(Name = "create_time", DbType = "datetime")]
		public DateTime CreateTime { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		[JsonProperty, Column(Name = "create_by", DbType = "bigint")]
		public long CreateBy { get; set; }

		/// <summary>
		/// 更新时间
		/// </summary>
		[JsonProperty, Column(Name = "update_time", DbType = "datetime")]
		public DateTime UpdateTime { get; set; }

		/// <summary>
		/// 更新人
		/// </summary>
		[JsonProperty, Column(Name = "update_by", DbType = "bigint")]
		public long UpdateBy { get; set; }

		/// <summary>
		/// 排序
		/// </summary>
		[JsonProperty, Column(Name = "sort", DbType = "int")]
		public int? Sort { get; set; }

		/// <summary>
		/// 是否删除：0=未删除、1=已删除
		/// </summary>
		[JsonProperty, Column(Name = "is_delete", DbType = "int")]
		public int IsDelete { get; set; }

	}

}
